import request from "../request.js"

// 获取轮播图
function bannerAds(){
	return request({
		url:"/lejuClient/home/bannerAds"
	})
}
//根据id查询分类
function findCategory(id){
	return request({
		url:`/lejuClient/productCategory/findCategory/${id}`
	})
}
//列表页
function findProductList(start,limit,data){
	return request({
		url:`/lejuClient/product/findProductList/${start}/${limit}`,
		method:"post",
		data
	})
}
// 热门列表
function hotList(data){
	return request({
		url:`/lejuClient/home/hotList`,
		method:"get",
		data
	})
}
// 新品推荐
function lejuLatestProducts(data){
	return request({
		url:`/lejuClient/home/lejuLatestProducts`,
		method:"get",
		data
	})
}
// 猜你喜欢
function saleMostProducts(data){
	return request({
		url:`/lejuClient/home/saleMostProducts`,
		method:"get",
		data
	})
}



export {
	bannerAds,
	findCategory,
	findProductList,
	hotList,
	lejuLatestProducts,
	saleMostProducts
}